package io.packaging;

import java.io.BufferedWriter;
import java.io.FileWriter;

public class Outputt {
    public static void main(String[] args) {


        {
            try (FileWriter A = new FileWriter("D:\\workspace\\basic-chapter\\src\\io\\packaging\\a.txt", true);
                 //缓冲流更快
              BufferedWriter s=new    BufferedWriter(A);
            ) {
                s.write("2");
                s.write('s');
                s.write("赵");
                s.write("爱中国");
                s.newLine();
                char[] s1 ={'a','黑','人'};
                s.write(s1);

            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    }

}
